<?php

namespace App\Models\Lst;

use Illuminate\Database\Eloquent\Model;

class Detail extends Model
{
	protected $table = 'lst_details';

    protected $guarded = array();

    protected $fillable = ['category_id','clase_id'];

    public function clase()
    {
        return $this->belongsTo('\App\Models\Edu\Clase');
    }

    public function category()
    {
        return $this->belongsTo('\App\Models\Edu\Category');
    }

    public function publish()
    {
        return $this->belongsTo('\App\Models\Lst\Publish');
    }

}